//package com.compose.universally.state
//
//import android.content.res.Resources
//import androidx.annotation.IdRes
//import androidx.compose.runtime.*
//import androidx.compose.ui.platform.LocalConfiguration
//import androidx.compose.ui.platform.LocalContext
//import androidx.navigation.*
//import kotlinx.coroutines.CoroutineScope
//
//
//lateinit var appState: BaseAppState
//
//abstract class ComposeState {
//    abstract val navController: NavController
//    abstract val coroutineScope: CoroutineScope
//}
//
//abstract class BaseAppState(
//    override val navController: NavHostController,
//    override val coroutineScope: CoroutineScope,
//) : ComposeState() {
//
//    fun push(
//        route: String, navOptions: NavOptions? = null, navigatorExtras: Navigator.Extras? = null
//    ) {
//        navController.navigate(route, navOptions, navigatorExtras)
//    }
//
//    fun push(route: String, builder: NavOptionsBuilder.() -> Unit) {
//        navController.navigate(route, builder)
//    }
//
//    fun pop(): Boolean {
//        return navController.popBackStack()
//    }
//
//    fun pop(@IdRes destinationId: Int, inclusive: Boolean): Boolean {
//        return navController.popBackStack(destinationId, inclusive)
//    }
//
//    fun pop(
//        @IdRes destinationId: Int, inclusive: Boolean, saveState: Boolean
//    ): Boolean {
//        return navController.popBackStack(destinationId, inclusive, saveState)
//    }
//}
//
//
//@Composable
//@ReadOnlyComposable
//fun resources(): Resources {
//    LocalConfiguration.current
//    return LocalContext.current.resources
//}